package com.zhonghui.scm.domain;

import java.math.BigDecimal;
import com.zhonghui.common.annotation.Excel;
import com.zhonghui.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 供应链SCM-销售管理-销售退货子对象 scm_sale_return_item
 * 
 * @author qiezhi
 * @date 2023-12-18
 */
public class ScmSaleReturnItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 销售退货id */
    @Excel(name = "销售退货id")
    private Long returnId;

    /** 物料id */
    @Excel(name = "物料id")
    private Long materialId;


    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal amount;

    /** 订货数量 */
    @Excel(name = "订货数量")
    private Long orderQuantity;

    /** 发货数量 */
    @Excel(name = "发货数量")
    private Long deliveryNum;

    /** 退货数量 */
    @Excel(name = "退货数量")
    private Long returnNum;

    /** 备注 */
    @Excel(name = "备注")
    private String note;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setReturnId(Long returnId)
    {
        this.returnId = returnId;
    }

    public Long getReturnId()
    {
        return returnId;
    }
    public void setMaterialId(Long materialId)
    {
        this.materialId = materialId;
    }

    public Long getMaterialId()
    {
        return materialId;
    }
    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    public BigDecimal getAmount()
    {
        return amount;
    }
    public void setOrderQuantity(Long orderQuantity)
    {
        this.orderQuantity = orderQuantity;
    }

    public Long getOrderQuantity()
    {
        return orderQuantity;
    }
    public void setDeliveryNum(Long deliveryNum)
    {
        this.deliveryNum = deliveryNum;
    }

    public Long getDeliveryNum()
    {
        return deliveryNum;
    }
    public void setReturnNum(Long returnNum)
    {
        this.returnNum = returnNum;
    }

    public Long getReturnNum()
    {
        return returnNum;
    }
    public void setNote(String note)
    {
        this.note = note;
    }

    public String getNote()
    {
        return note;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("returnId", getReturnId())
            .append("materialId", getMaterialId())
            .append("amount", getAmount())
            .append("orderQuantity", getOrderQuantity())
            .append("deliveryNum", getDeliveryNum())
            .append("returnNum", getReturnNum())
            .append("note", getNote())
            .toString();
    }
}
